<?php
namespace Admin\Controller;
use Think\Controller;
class SetingController extends AdminController {
    public function index(){
	
	
		$vote_count = M('Vote')->where(array('status'=>'1'))->count();
		//dump($vote_count);
		
		$result = M('Vote')->where(array('status'=>'1'))->select();
		//dump($result);
		
        $this->assign('votes', $result);
        $this->assign('vote_count', $vote_count);
        $this->assign('page', $result['show']);
		
        $this->display();
    }
	
	public function add(){
		$this->display();
	}
}